// import screenshot from 'screenshot-desktop'
// export const getScreenshot = async (): Promise<any> => {
//   const imageBuffer = await screenshot({ format: 'jpg', quality: 100, screen: 0 })
//   return imageBuffer

import path from "path"
// }
export const nginxServerPath = 'http://localhost:8521'

export function safePath(inputPath): string {
  // 替换可能的非法字符
  return inputPath
    .replace(/\\/g, path.sep)  // 统一分隔符
    .replace(/\//g, path.sep)
    .replace(/[<>:"|?*]/g, ''); // 移除非法字符
}